package org.particlethink.utils

public fun <T> defaultIfNull(t: T, default: T): T {
    if (t == null) {
        return default
    }
    return t
}
